package com.dgut.lab.mapper;

import com.dgut.lab.entity.Answer;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AnswerRepository extends MongoRepository<Answer, ObjectId> {
    List<Answer> findByVersion(ObjectId objectId);

    List<Answer> findByUsername(String username);
}
